package com.Mt.mapper;
import com.Mt.pojo.Mt_Commodity;
import com.Mt.pojo.Mt_CommodityAdmin;
import org.apache.ibatis.annotations.Param;

//前台商品
import java.util.List;

public interface Mt_CommodityMapper {

    List<Mt_Commodity> all();

    List<Mt_CommodityAdmin> pageAll(@Param("index") int index,
                                    @Param("size") int size);

    int count();

    List<Mt_CommodityAdmin> like(@Param("cName") String cName,
                                 @Param("index") int index,
                                 @Param("size") int size);

    int del(@Param("id") int id);

    List<Mt_CommodityAdmin> selById(@Param("id") int id);


    int addCommodity(Mt_CommodityAdmin commodityAdmin);

}
